var { initObj, formatObj } = require('../libs/common');

var init = function (data) {
    return initObj(mod, data);
}

var format = function (data) {
    return formatObj(mod, data);
}

// 用户标签表
var mod = {
    pcode: {
        name: '关联员工code',
        type: 'string',
        length: 12
    },
    character: {
        name: '性格',
        type: 'string',
        length: 100
    },
    contour: {
        name: '外形',
        type: 'string',
        length: 100
    },
    currentstate: {
        name: '当前状态',
        type: 'string',
        length: 100
    },
    interest: {
        name: '兴趣',
        type: 'string',
        length: 100
    },
    createtime: {
        name: '创建时间',
        type: 'date',
        default: new Date()
    },
    updatetime: {
        name: '更新时间',
        type: 'date',
        default: new Date()
    }
};

module.exports = {
    init,
    format
};